package tech.xiaozai.exam.security.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author xiaozai
 * @version 1.0
 * @date 2020-10-08 16:23
 */

@ConfigurationProperties(prefix = "security.jwt")
public class JWTConfig {

    /**默认的令牌有效期
     *
     */
    @Setter
    @Getter
    private Long ms=36000000L;

    /**密钥
     *
     */
    @Setter
    @Getter
    private String secret="123456";
}
